Fix bug#16118
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 14 Dec 2013 06:46:13 +0000 (08:46 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 14 Dec 2013 06:46:13 +0000 (08:46 +0200)
commit2f711a188f18cd276bbe7b068bcf54922d59e022
tree1bd255204857d3a3f773b176256aef8092822f11
parent337d36afaa8b59fd1c32ebe37992f58f2136856e
Fix bug#16118

* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Return nil before
open-paren tokens when preceded by a open-paren, too.
(ruby-smie-rules): Handle virtual indentation after open-paren
tokens specially.  If there is code between it and eol, return the
column where is starts.

* test/indent/ruby.rb: New examples.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/indent/ruby.rb